package middlewareLogExtraction.model;

public class SPTimingRecord implements Record {
	private final String spName;
	private final String time;

	public String getSpName() {
		return spName;
	}

	public String getTime() {
		return time;
	}

	public SPTimingRecord(String spName, String time) {
		this.spName = spName;
		this.time = time;
	}

	public String getElement(int index) {
		if(index == 1)
			return this.spName;
		if(index == 2)
			return this.time;
		return null;
	}

}
